﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JYH.Data
{
    /// <summary>
    /// Json反馈对象
    /// </summary>
    public class JsonServiceModel
    {


        private string _Result = "1";
        /// <summary>
        /// JSON调用返回结果 0 失败 1 成功
        /// </summary>
        public string Result
        {
            get
            {
                return _Result;
            }
            set
            {
                _Result = value;
            }
        }

        private string _Message = string.Empty;
        /// <summary>
        /// JSON调用返回信息
        /// </summary>
        public string Message
        {
            get
            {
                return _Message;
            }
            set
            {
                _Message = value;
            }
        }

        /// <summary>
        /// Json显示文本
        /// </summary>
        private string _Text = string.Empty;
        public string Text
        {
            get
            {
                return _Text;
            }
            set
            {
                _Text = value;
            }
        }




        private string _ResultData = string.Empty;
        /// <summary>
        /// JSON调用返回JSon对象
        /// </summary>
        public string ResultData
        {
            get
            {
                return _ResultData;
            }
            set
            {
                _ResultData = value;
            }
        }
        private long _Total = 0;
        /// <summary>
        /// 总记录数
        /// </summary>
        public long Total
        {
            get
            {
                return _Total;
            }
            set
            {
                _Total = value;
            }
        }
        private long _TotalPage = 0;
        /// <summary>
        /// 总页数
        /// </summary>
        public long TotalPage
        {
            get
            {
                return _TotalPage;
            }
            set
            {
                _TotalPage = value;
            }
        }
        private string _JsonStr = "{\"Result\":{0},\"Message\":{1},\"ResultData\":{2},\"Total\":{3},\"TotalPage\":{4}}";
        /// <summary>
        /// 返回的Json格式
        /// </summary>
        public string JsonStr
        {
            get
            {
                return _JsonStr;
            }
            set
            {
                _JsonStr = value;
            }
        }
    }
}
